import http from '../https'
// const baseURL = "http://192.168.1.122:8080"
const baseURL = "http://82.157.143.31:8080"

// 初始化患者公海列表
const initPatientsHighSeaTable = (obj) => http({
    url: `${baseURL}/customer/customerInitializeLikeFind`,
    method: 'get',
    params: {
        ...obj
    }
})

// 导出患者公海
const daoChu = (obj) => http({
    url: `${baseURL}/customer/customerInformationExcelOutput`,
    method: 'get',
    params: {
        ...obj
    },
    responseType: 'blob'
})

// 患者公海--初始化分配的部门
const initPatientsHighSeaTableBuMen = () => http({
    url: `${baseURL}/customer/seaCustomerDept`,
    method: 'get',
})

// 患者公海--初始化分配的人员
const initPatientsHighSeaTableRenYuan = (obj) => http({
    url: `${baseURL}/customer/seaCustomerEmployee`,
    method: 'get',
    params: {
        ...obj
    }
})

// 患者公海--分配的确认提交
const fenPeiSub = (obj) => http({
    url: `${baseURL}/customer/seaCustomerTransfer`,
    method: 'post',
    data: {
        ...obj
    }
})

// 患者管理--高级搜索,患者管理--模糊搜索
const gaoJiSearchSubmit = (obj) => http({
    url: `${baseURL}/customer/customerInitializeLikeFind`,
    method: 'get',
    params: {
        ...obj
    }
})


export {
    initPatientsHighSeaTable,
    daoChu,
    initPatientsHighSeaTableBuMen,
    initPatientsHighSeaTableRenYuan,
    fenPeiSub,
    gaoJiSearchSubmit
}